class Task:
	def __init__(self, name, proc, net, pinned):
		self.name = name
		self.proc = float(proc)
		self.net = float(net)
		self.pinned = pinned

	def toString(self):
		ret = 'Task ' + self.name + \
		'\n\tproc ' + self.proc + \
		'\n\tnet ' + self.net
		return ret;
		
class Host:
	def __init__(self, name, ip, proc, net):
		self.name = name
		self.proc = proc
		self.net = net
		self.ip = ip
	
	def toString(self):
		ret = 'Host ' + self.name + \
		'\n\tip ' + self.ip + \
		'\n\tproc ' + self.proc + \
		'\n\tnet ' + self.net
		return ret;
